public class Base {
    public int a = 1;
    public int b = 2;

    public Base() {
        System.out.println("Base()构造方法...");
    }

    //有参数的构造方法
    public Base(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public void testA(){
        System.out.println("testA()...");
    }

    public void testBase(){
        System.out.println("testBase()...");
    }
}
